<?php

namespace app\common\model\system;
use app\common\model\BaseModel;

class SystemConfigValue extends BaseModel
{

    public static function tablePK(): ?string
    {
        return 'config_value_id';
    }

    public static function tableName(): string
    {
        return 'system_config_value';
    }

    public function getValueAttr($value)
    {
        return json_decode($value, true);
    }

    public function setValueAttr($value)
    {
        return json_encode($value);
    }

}